import COMMUNITY_CONFIG from '/menu/community/menu.json?url&raw';
import DEVELOPMENT_CONFIG from '/menu/development/menu.json?url&raw';
import TOOL_CONFIG from '/menu/tool/menu.json?url&raw';
import BEST_PRACTICE_CONFIG from '/menu/best-practice/menu.json?url&raw';
import TEST_GUIDE_CONFIG from '/menu/test-guide/menu.json?url&raw';

export const MENU_COMMUNITY_CONFIG = JSON.parse(COMMUNITY_CONFIG);
export const MENU_DEVELOPMENT_CONFIG = JSON.parse(DEVELOPMENT_CONFIG);
export const MENU_TOOL_CONFIG = JSON.parse(TOOL_CONFIG);
export const MENU_BEST_PRACTICE_CONFIG = JSON.parse(BEST_PRACTICE_CONFIG);
export const MENU_TEST_GUIDE_CONFIG = JSON.parse(TEST_GUIDE_CONFIG);

export const MENU_KEYS = ['community', 'development', 'tool', 'best-practice', 'test-guide'];

export const MENU_MAP = {
  community: MENU_COMMUNITY_CONFIG,
  development: MENU_DEVELOPMENT_CONFIG,
  tool: MENU_TOOL_CONFIG,
  'best-practice': MENU_BEST_PRACTICE_CONFIG,
  'test-guide': MENU_TEST_GUIDE_CONFIG
}

